home *** CD-ROM | disk | FTP | other *** search
- Subject: AECoerceDesc Bug
- Sent: 6/7/96 1:34 PM
- Received: 6/7/96 1:51 PM
- From: Ken Boyer, kboyer@itsnet.com
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- I have run up against a very strange bug when using ODF 1 and OpenDoc
- 1.0.4. Whenever AECoerceDesc is called and tries to coerce a desc to either
- typeAERecord, or typeAEList, the result desc is typeNull and no error is
- returned. At first I though that there was something wrong with my code, I
- have an AERecord of type 'typeTextStyles', that contains a 'keyAEOnStyles'
- and 'keyAEOffStyles' desc's. When it comes time to coerce it back to a
- AEList, AECoerceDesc gives me a typeNull desc and no error. When I look at
- the source desc, it is the same as the one that I created before the send.
- I have traced inside OpenDoc and found the same behavior happening there as
- well. In the method "SubstContainerForccnt" in the source file "OSLClAcc.c"
- it tries to convert a range desc into a AERecord, but the result is
- typeNull, then when it tries to get the keyAERangeStart desc it gets an
- error. I have looked at the source desc, and it appears to be correctly
- built range desc.
-
- Because I had written my own semantic interface extension before ODF
- supported semantic events, I have set FW_SUPPORTS_EXTENSIONS 1 &
- FW_SUPPORTS_SCRIPTING 0. When I go back to my part that was based on DR11
- this behavior does not happen. Does ODF install a coercion handler that
- could cause this?
-
- This bug has brought a number of features in my part to cease working. Is
- there a work around or a fix that I can use?
-
- Ken Boyer
- Digital Harbor
-
-